package com.zhangzhan.gulimallcommcon.validator.validinterface.product.myinterface;


import com.zhangzhan.gulimallcommcon.validator.validinterface.product.constraint.BrandShowStatusValidConstraint;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Documented
@Constraint(validatedBy = {BrandShowStatusValidConstraint.class})
@Target({ FIELD })
@Retention(RUNTIME)
public @interface BrandShowStatusValid {

    String message() default "{jakarta.validation.constraints.BrandShowStatusValid.message}";

    int[] value() default { };

    Class<?>[] groups() default { };

    Class<? extends Payload>[] payload() default { };

}
